<!--
 * @Description:
 * @Author: yjp
 * @Date: 2020-08-11
 * @LastEditTime: 2021-05-27 16:18:17
 * @FilePath: /static/ux/page/invoicePrinting.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>报销单打印</title>
  
</head>
<style>
  .ueditor-box {
    font-family: sans-serif;
    font-size: 12px;
    min-width: 1000px;
    overflow: auto;
    padding: 20px;
  }

  .ueditor-box h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p {
    margin: 0px;
  }

  .ueditor-box table.noBorderTable td,
  .ueditor-box table.noBorderTable th,
  .ueditor-box table.noBorderTable caption {
    border: 0px dashed #ddd !important;
  }

  .ueditor-box table.sortEnabled tr.firstRow th,
  .ueditor-box table.sortEnabled tr.firstRow td {
    padding-right: 20px;
    background-repeat: no-repeat;
    background-position: center right;
    background-image: url(/static/ux/editor/ueditor1_4_3/themes/default/images/sortable.png);
  }

  .ueditor-box table.sortEnabled tr.firstRow th:hover,
  .ueditor-box table.sortEnabled tr.firstRow td:hover {
    background-color: #EEE;
  }

  .ueditor-box table {
    table-layout: fixed;
    border-collapse: collapse;
    display: table;
    margin: 0 auto;
  }

  .ueditor-box-html td,
  .ueditor-box-html th {
    border: 1px solid #000000;
    word-break: break-all;
    word-wrap: break-word;
    font-family: 宋体, SimSun;
    font-size: 14px;
  }

  .ueditor-box .x-field {
    text-indent: 0px;
  }

  .ueditor-box-html .x-form-item td,
  .ueditor-box-html .x-form-item th {
    border: 0px solid #000000 !important;
  }


  .ueditor-box caption {
    border: 0px dashed #DDD;
    border-bottom: 0;
    padding: 3px;
    text-align: center;
  }

  .ueditor-box th {
    border-top: 1px solid #BBB;
    background: #F7F7F7;
  }

  .ueditor-box table tr.firstRow th {
    border-top: 2px solid #BBB;
    background: #F7F7F7;
  }

  .ueditor-box tr.ue-table-interlace-color-single td {
    background: #fcfcfc;
  }

  .ueditor-box tr.ue-table-interlace-color-double td {
    background: #f7faff;
  }

  .ueditor-box td p {
    margin: 0;
    padding: 0;
  }

  .ueditor-box .edui-chart-container {
    height: 500px;
  }
  .button_export{
    background-color: #6A9CFF;
    border:0px ;
    border-radius: 3px;
    width:120px;
    height:35px;
    color: #fff;
    padding:5px 8px;
  }
  /* 横 */
  .print_boxH{
      display: flex;
      align-items: center; 
      justify-content: center; 
  }
  /* 纵 */
  .print_boxZ{
      display: flex;
      align-items: center; 
      justify-content:center;
      flex-direction: column;
  }
  .adopt_img{
    margin:15px 0 0 0;
  }
  @media print {
    .Noprint{
      display: none;
      height: 0;
      margin: 0;
    }
    
  }
  @page {
      size: auto;  /* auto is the initial value */ 

      margin: 0mm; /* this affects the margin in the printer settings */
  }
</style>
<!-- <script src="./yjpInterface.js"></script> -->
<script src="./watermark/watermark.js"></script>
<body>

  <!-- 打印的内容 -->
  <div id="Noprint_id" style="margin:50px 0px 0 0;width:95%;text-align: right;" class="Noprint print-setting">
    <button class="Noprint button_export"  onclick="javascript:window.print();">打印</button>
  </div>
  
<!--startprint-->
  <div id="printCon" class="ueditor-box ueditor-box-html">
    
    
    <!-- 非项目支出报销单 -->
    <div id="nonProject" class="print_boxH"  style="height:775px;"> </div>
    <!-- 项目支出报销单 -->
    <div id="isProject" class="print_boxH" style="height:775px;"> </div>
    <!-- 差旅费报销单 -->
    <div id="travel" class="print_boxZ"  > </div>
    <!-- 市内交通费报销单 -->
    <div id="traffic" class="print_boxZ" > </div>
    <!-- 业务招待费明细 -->
    <div id="entertain"  class="print_boxZ" > </div>
    <!-- 无法取得发票的费用支出情况说明 -->
    <div id="replace" class="print_boxZ" > </div>

  </div>
<!--endprint-->


</body>
<script>
  function startDom(plus) {
    //加载数据
    let printKey = '';
    let stroageData = '';
    // 如果是APP端打开报销预览
    if(plus) {
      printKey = 'InvoicePrinting';
      stroageData = JSON.parse(plus.storage.getItem(printKey));
      // Noprint_id
      // app端打开隐藏掉打印的按钮
      const dom = document.getElementById('Noprint_id');
      dom.style.display = 'none';
      // 一分钟后删除存储
      setTimeout(() => {
        plus.storage.removeItem('InvoicePrinting');
      }, 1000 * 60);
    } else {
      // pc端动态引入背景水印，app端不显示水印！！！
      // const createScript = document.createElement('script');
      // createScript.type = 'text/javascript';
      // createScript.src = './watermark/watermark.js';
      // document.body.appendChild(createScript);

      printKey = window.name || 'InvoicePrinting'; // 网页版打开会在window.name绑定属性，但是H5和APP都不会所以添加InvoicePrinting属性
      stroageData = JSON.parse(window.localStorage.getItem(printKey));
      setTimeout(() => {  // 一分钟后删除掉该属性
        window.localStorage.removeItem('InvoicePrinting');
      }, 1000 * 60);
    }
    let {noProject,isProject,travel,traffic,entertain,replace,state}=stroageData.formatData
    

    isEmpty(noProject)?document.getElementById('nonProject').remove():buildNoProjectTemp();
    isEmpty(isProject)?document.getElementById('isProject').remove():buildIsProject();
    isEmpty(travel)?document.getElementById('travel').remove():buildTravel();
    isEmpty(traffic)?document.getElementById('traffic').remove():buildTraffic();
    isEmpty(entertain)?document.getElementById('entertain').remove():buildEntertain();
    isEmpty(replace)?document.getElementById('replace').remove():buildReplace();
    
    function isEmpty(e) {
        if (null === e || void 0 === e)
            return !0;
        if (Array.isArray(e))
            return 0 === e.length;
        if (e.constructor === Object) {
            for (var n in e)
                if (e.hasOwnProperty(n))
                    return !1;
            return !0
        }
        return "" === e
    }
    
    //  非项目支出报销单 
    function buildNoProjectTemp(){
      let noProjectTemp='';
        noProjectTemp+=`
        <div>
          <p style="text-align:center;font-size: 24px;white-space: normal;margin-bottom: 30px;">
            非项目支出报销单
          </p> 
          <p style="text-align: center;font-size: 14px;white-space: normal;text-indent: 10px;margin-bottom:5px;display:flex;">
            <span style="font-weight: 600">
              报销单位: 
              <span style="margin-right:10px;">${noProject.unitName==='凯特智控'?'■':'□'}凯特智控</span>
              <span style="margin-right:10px;">${noProject.unitName==='中加诚信'?'■':'□'}中加诚信</span>
              <span style="margin-right:10px;">${noProject.unitName==='凯特高科'?'■':'□'}凯特高科</span>
              <span style="margin-right:10px;">${noProject.unitName==='凯特伟业'?'■':'□'}凯特伟业</span> 
            </span>
            <span style="margin-right:320px;font-weight: 600">其他<span style="text-decoration:underline;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>报销部门：${noProject.reimbursementDept||''}</span>
            <span style="font-weight: 600">单位：元</span>
          </p>
          <table cellspacing="0">
            <tbody>
              <tr style="height: 36px;text-align: center;" class="firstRow">
                <td width="86" valign="center"
                  style=" border-width: 2px 1px 1px 2px; border-color: windowtext;" rowspan="1"
                  colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px;">人员编码</span>
                  </p>
                </td>
                <td width="86" valign="center"
                  style=" border-width: 2px 1px 1px; border-color: windowtext;" rowspan="1" colspan="2">
                  ${noProject.personnelCode}</td>
                <td width="86" valign="center"
                  style=" border-width: 2px 1px 1px; border-color: windowtext;" rowspan="1" colspan="1">
                  <p style= "text-align: justify;font-size: 14px;text-indent: 15px"><span
                      style="font-family: 宋体;font-size: 15px;">报销人</span></p>
                </td>
                <td width="86" valign="center"
                  style=" border-width: 2px 1px 1px; border-color: windowtext;" rowspan="1" colspan="2">
                  ${noProject.name}</td>
                <td valign="center" colspan="2"
                  style=" border-width: 2px 1px 1px; border-color: windowtext;" rowspan="1">
                  <p style="margin: 0 0 0 9px;text-align: justify;font-size: 14px"><span
                      style="font-family: 宋体;font-size: 14px;">合计（小写）</span> ${noProject.totalS}</p>
                </td>
                <td valign="center" colspan="2"
                  style=" border-width: 2px 2px 1px 1px; border-color: windowtext;" rowspan="1">
                  <p style= "font-size: 14px;text-align: justify;"><span style="font-family: 宋体;font-size: 14px;">合计（大写）</span> ${noProject.totalL}</p>
                </td>
              </tr>
              <tr style="height: 36px">
                <td width="100" valign="center"
                  style=" border-width: 1px 1px 1px 2px; border-color: windowtext;" rowspan="1"
                  colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">支出分类</span>
                  </p>
                </td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">办公费</span>
                  </p>
                </td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">税
                      金</span></p>
                </td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">劳务费</span></p>
                </td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">车辆费</span></p>
                </td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">通讯费</span>
                  </p>
                </td>
                <td width="100" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span
                        style="font-family: 宋体;font-size: 14px">差旅交通费</span></p>
                </td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span
                        style="font-family: 宋体;font-size: 14px">机票、火车票</span></p>
                </td>
                <td width="127" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span
                        style="font-family: 宋体;font-size: 14px">公路、水路客票等</span></p>
                </td>
                <td width="112" valign="center"
                  style=" border-width: 1px 2px 1px 1px; border-color: windowtext;" rowspan="1"
                  colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">招待费</span>
                  </p>
                </td>
              </tr>
              <tr style="height: 36px;text-align: center;">
                <td width="100" valign="center"
                  style=" border-width: 1px 1px 1px 2px; border-color: windowtext;" rowspan="1"
                  colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">金额</span>
                  </p>
                </td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.officeExpenses.money||''}</td>
                  <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.officeExpenses.money||''}</td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.taxes.money||''}</td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.communicationFee.money||''}</td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.communicationFee.money||''}</td>
                <td width="100" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.fare.money||''}</td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.ticket.money||''}</td>
                <td width="127" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.highway.money||''}</td>
                <td width="112" valign="center"
                  style=" border-width: 1px 2px 1px 1px; border-color: windowtext;" rowspan="1"
                  colspan="1">${noProject.entertain.money||''}</td>
              </tr>
              <tr style="height: 36px;text-align: center;">
                <td width="100" valign="center"
                  style=" border-width: 1px 1px 1px 2px; border-color: windowtext;" rowspan="1"
                  colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">票据张数</span>
                  </p>
                </td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.officeExpenses.num||''}</td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.taxes.num||''}</td>
                  <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.communicationFee.num||''}</td>
                  <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.communicationFee.num||''}</td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.communicationFee.num||''}</td>
                <td width="100" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.fare.num||''}</td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.ticket.num||''}</td>
                <td width="127" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.highway.num||''}</td>
                <td width="112" valign="center"
                  style=" border-width: 1px 2px 1px 1px; border-color: windowtext;" rowspan="1"
                  colspan="1">${noProject.entertain.num||''}
                </td>
              </tr>
              <tr style="height: 36px">
                <td width="100" valign="center"
                  style=" border-width: 1px 1px 1px 2px; border-color: windowtext;" rowspan="1"
                  colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">支出分类</span>
                  </p>
                </td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">会议费</span>
                  </p>
                </td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">资料费</span>
                  </p>
                </td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">保险费</span>
                  </p>
                </td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">租赁费</span>
                  </p>
                </td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">服务费</span>
                  </p>
                </td>
                <td width="100" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">福利费</span>
                  </p>
                </td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">培训及资料</span>
                  </p>
                </td>
                <td width="127" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span
                      style="font-family: 宋体;font-size: 14px">汽、</span><span
                      style="font-family: 宋体;font-size: 14px">柴</span><span
                      style="font-family: 宋体;font-size: 14px">油费</span></p>
                </td>
                <td width="112" valign="center"
                  style=" border-width: 1px 2px 1px 1px; border-color: windowtext;" rowspan="1"
                  colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">过</span><span
                      style="font-size: 14px">路过桥费</span></p>
                </td>
              </tr>
              <tr style="height: 36px;text-align: center;">
                <td width="100" valign="center"
                  style=" border-width: 1px 1px 1px 2px; border-color: windowtext;" rowspan="1"
                  colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">金额</span>
                  </p>
                </td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.meeting.money||''}</td>
                  <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.rentalFee.money||''}</td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.service.money||''}</td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.rentalFee.money||''}</td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.service.money||''}</td>
                <td width="100" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.welfare.money||''}</td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.training.money||''}</td>
                <td width="127" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.oil.money||''}</td>
                <td width="112" valign="center"
                  style=" border-width: 1px 2px 1px 1px; border-color: windowtext;" rowspan="1"
                  colspan="1">${noProject.bridge.money||''}</td>
              </tr>
              <tr style="height: 36px;text-align: center;">
                <td width="100" valign="center"
                  style=" border-width: 1px 1px 1px 2px; border-color: windowtext;" rowspan="1"
                  colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">票据张数</span>
                  </p>
                </td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.meeting.num||''}</td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.rentalFee.num||''}</td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.service.num||''}</td>
                  <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.rentalFee.num||''}</td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  ${noProject.service.num||''}</td>
                <td width="100" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.welfare.num||''}</td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.training.num||''}</td>
                <td width="127" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">${noProject.oil.num||''}</td>
                <td width="112" valign="center"
                  style=" border-width: 1px 2px 1px 1px; border-color: windowtext;" rowspan="1"
                  colspan="1">${noProject.bridge.num||''}</td>
              </tr>
              <tr style="height: 47px">
                <td width="100" valign="center"
                  style=" border-width: 1px 1px 1px 2px; border-color: windowtext;" rowspan="1"
                  colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 15px">部门负责人</span>
                  </p>
                </td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1"><br></td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 15px">行政总监</span>
                  </p>
                </td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  <br></td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 15px">主管会计</span>
                  </p>
                </td>
                <td width="86" valign="center" colspan="1"
                  style=" border-width: 1px; border-color: windowtext;" rowspan="1">
                  <br></td>
                <td width="100" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 15px">财务负责人</span>
                  </p>
                </td>
                <td width="86" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1"><br></td>
                <td width="127" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 15px">批
                      &nbsp;准</span></p>
                </td>
                <td width="112" valign="center"
                  style=" border-width: 1px 2px 1px 1px; border-color: windowtext;" rowspan="1"
                  colspan="1"><br></td>
              </tr>
              <tr style="height: 95px">
                <td width="100" valign="center"
                  style=" border-width: 1px 1px 2px 2px; border-color: windowtext;" rowspan="1"
                  colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">说
                      明</span></p>
                </td>
                <td width="724" valign="center" colspan="9"
                  style=" border-width: 1px 2px 2px 1px; border-color: windowtext;" rowspan="1">
                  <p style= "text-align: justify;font-size: 14px"><span
                      style="font-family: 宋体;font-size: 14px">①财务有权拒收不符合财务要求的票据，有权拒收未认真填写分类单的票据；</span>
                  </p>
                  <p style= "text-align: justify;font-size: 14px"><span
                      style="font-family: 宋体;font-size: 14px">②</span><span
                      style="font-family: 宋体;font-size: 14px">大写规范：壹、贰、叁、肆、伍、陆、柒、捌、玖、拾、佰、仟、万、零、整。</span>
                  </p>
                  <p style= "text-align: justify;font-size: 14px"><span
                      style="font-family: 宋体;font-size: 14px">③批准适用于审批权限授予者。</span></p>
                  <p style= "text-align: justify;font-size: 14px"><span
                        style="font-family: 宋体;font-size: 14px">④差旅交通费不含机票、火车票、公路、水路客票等，上述三项按含税金额列示即可。</span>
                  </p>
                </td>
              </tr>
              <tr height="0">
                <td colspan="10" style="border-color:transparent;padding:0px;">
                  <div style="width:771px"></div>
                </td>
              </tr>
            </tbody>
          </table>

          <p style="text-align: center;font-size: 14px;white-space: normal;text-indent: 415px;margin-top:10px;">
              <span>合计附票 &nbsp;&nbsp;${noProject.tabCount}&nbsp;&nbsp;   张 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   ${noProject.creatYear||''} 年  &nbsp;&nbsp; ${noProject.creatMonth||''} 月  &nbsp;&nbsp;${noProject.creatDay||''} 日 </span>             
          </p>
          ${!state?`
            <p  style="text-align: right;">
            <img class="adopt_img" src="./watermark/img/seal.png" alt="">
          </p>`: 
            ``
          }
        </div>
        <div style=" -webkit-writing-mode: vertical-rl; writing-mode: vertical-rl; writing-mode: tb-rl; margin:100px 0 0 15px;">第&nbsp;（ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ）&nbsp;号</div>
        `
      document.getElementById('nonProject').innerHTML= noProjectTemp
    }
    
    // 项目支出报销单 
    function buildIsProject(){
      let isProjectTemp='';
        isProjectTemp+=`
        <div >
          <p style="text-align:center;font-size: 24px;white-space: normal;margin-bottom: 30px;">
              项目支出报销单
          </p>

          <p style="text-align: center;font-size: 14px;white-space: normal;text-indent: 10px;margin-bottom:5px;display:flex;">
                <span  style="margin-right:100px;font-weight: 600">
                  报销单位 :
                  ${isProject.unitName==='凯特智控'?'■':'□'}凯特智控
                  ${isProject.unitName==='中加诚信'?'■':'□'}中加诚信
                  ${isProject.unitName==='凯特高科'?'■':'□'}凯特高科
                  ${isProject.unitName==='凯特伟业'?'■':'□'}凯特伟业 
                </span>
                <span>其他<span style="text-decoration:underline;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>报销部门：${isProject.reimbursementDept||''}</span>
                <span>单位：元</span>
          </p>

          <table cellspacing="0">
            <tbody>
              <tr style="height: 36px" class="firstRow">
                <td width="101" valign="center"
                  style=" border-width: 2px 1px 1px 2px; border-color: windowtext;" rowspan="1"
                  colspan="1">
                  <p style= "text-align: center;font-size: 14px;text-indent: 14px"><span
                      style="font-family: 宋体;font-size: 14px">人员编码</span></p>
                </td>
                <td width="93" valign="center"
                  style=" border-width: 2px 1px 1px; border-color: windowtext;" rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px;text-indent: 14px"><span
                      style="font-family: 宋体;font-size: 14px">报 销 人</span></p>
                </td>
                <td width="186" valign="center" colspan="2"
                  style=" border-width: 2px 1px 1px; border-color: windowtext;" rowspan="1">
                  <p style= "text-align: justify;font-size: 14px;text-indent: 56px"><span
                      style="font-family: 宋体;font-size: 14px"> 货物/项目名称</span></p>
                </td>
                <td width="104" valign="center"
                  style=" border-width: 2px 1px 1px; border-color: windowtext;" rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span
                      style="font-family: 宋体;font-size: 14px">合同/项目编号</span></p>
                </td>
                <td width="84" valign="center"
                  style=" border-width: 2px 1px 1px; border-color: windowtext;" rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">合计（小写）</span>
                  </p>
                </td>
                <td width="206" valign="center" colspan="2"
                  style=" border-width: 2px 2px 1px 1px; border-color: windowtext;" rowspan="1">${isProject.totalS}
                </td>
              </tr>
              <tr style="height: 36px;text-align: center;">
                <td width="114" valign="center"
                  style=" border-left-width: 2px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.personnelCode}</td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.name}</td>
                <td width="206" valign="center" colspan="2"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1">${isProject.entryName}</td>
                <td width="113" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.contractCode}</td>
                <td width="92" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">合计（大写）</span>
                  </p>
                </td>
                <td width="228" valign="center" colspan="2"
                  style="text-align: justify; border-left-width: 1px; border-left-color: windowtext; border-right-width: 2px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1">${isProject.totalL}</td>
              </tr>
              <tr style="height: 36px;text-align: center;">
                <td width="114" valign="center"
                  style=" border-left-width: 2px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">支出分类</span>
                  </p>
                </td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">除税材料</span>
                  </p>
                </td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">抵扣税金</span>
                  </p>
                </td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">加工费</span>
                  </p>
                </td>
                <td width="113" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: justify;font-size: 14px;text-indent: 28px"><span
                      style="font-family: 宋体;font-size: 14px">运杂费</span></p>
                </td>
                <td width="92" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><strong><span
                        style="font-family: 宋体;font-size: 14px">差旅交通费</span></strong></p>
                </td>
                <td width="103" valign="center" style=" border-width: 1px; border-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: justify;font-size: 14px"><strong><span
                        style="font-family: 宋体;font-size: 14px">机票、火车票</span></strong></p>
                </td>
                <td width="125" valign="center"
                  style=" border-width: 1px 2px 1px 1px; border-color: windowtext;" rowspan="1"
                  colspan="1">
                  <p style= "text-align: justify;font-size: 14px"><strong><span
                        style="font-family: 宋体;font-size: 14px">公路、水路客票等</span></strong></p>
                </td>
              </tr>
              <tr style="height: 36px;text-align: center;">
                <td width="114" valign="center"
                  style=" border-left-width: 2px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">金额</span>
                  </p>
                </td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.material.money||''}</td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.taxes.money||''}</td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.machining.money||''}</td>
                <td width="113" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.transport.money||''}</td>
                <td width="92" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.fare.money||''}</td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.ticket.money||''}</td>
                <td width="125" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 2px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.highway.money||''}</td>
              </tr>
              <tr style="height: 36px;text-align: center;">
                <td width="114" valign="center"
                  style=" border-left-width: 2px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">票据张数</span>
                  </p>
                </td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.material.num||''}</td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.taxes.num||''}</td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.machining.num||''}</td>
                <td width="113" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.transport.num||''}</td>
                <td width="92" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.fare.num||''}</td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.ticket.num||''}</td>
                <td width="125" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 2px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.highway.num||''}</td>
              </tr>
              <tr style="height: 36px;text-align: center;">
                <td width="114" valign="center"
                  style=" border-left-width: 2px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">支出分类</span>
                  </p>
                </td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">租赁费</span>
                  </p>
                </td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">水电气费</span>
                  </p>
                </td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">服务费</span>
                  </p>
                </td>
                <td width="113" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">车辆费</span>
                  </p>
                </td>
                <td width="92" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">维修费</span>
                  </p>
                </td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">招待费</span>
                  </p>
                </td>
                <td width="125" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 2px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">办公费</span>
                  </p>
                </td>
              </tr>
              <tr style="height: 36px;text-align: center;">
                <td width="114" valign="center"
                  style=" border-left-width: 2px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">金额</span>
                  </p>
                </td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.rentalFee.money||''}</td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.hydropower.money||''}</td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.service.money||''}</td>
                <td width="113" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.car.money||''}</td>
                <td width="92" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.repair.money||''}</td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.entertain.money||''}</td>
                <td width="125" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 2px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.officeExpenses.money||''}</td>
              </tr>
              <tr style="height: 36px;text-align: center;">
                <td width="114" valign="center"
                  style=" border-left-width: 2px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">票据张数</span>
                  </p>
                </td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.rentalFee.num||''}</td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.hydropower.num||''}</td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.service.num||''}</td>
                <td width="113" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.car.num||''}</td>
                <td width="92" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.repair.num||''}</td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.entertain.num||''}</td>
                <td width="125" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 2px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">${isProject.officeExpenses.num||''}</td>
              </tr>
              <tr style="height: 48px;text-align: center;">
                <td width="114" valign="center"
                  style=" border-left-width: 2px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px;line-height: 21px"><span
                      style="font-family: 宋体;font-size: 14px">项目负责人</span></p>
                </td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1"><br></td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px;line-height: 21px"><span
                      style="font-family: 宋体;font-size: 14px">主管会计</span></p>
                </td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1"><br></td>
                <td width="113" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px;line-height: 21px"><span
                      style="font-family: 宋体;font-size: 14px">财务负责人</span></p>
                </td>
                <td width="92" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1"><br></td>
                <td width="103" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px;line-height: 21px"><span
                      style="font-family: 宋体;font-size: 14px">批 &nbsp;准</span></p>
                </td>
                <td width="125" valign="center"
                  style=" border-left-width: 1px; border-left-color: windowtext; border-right-width: 2px; border-right-color: windowtext; border-top: none; border-bottom-width: 1px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1"><br></td>
              </tr>
              <tr style="height: 79px">
                <td width="114" valign="center"
                  style=" border-left-width: 2px; border-left-color: windowtext; border-right-width: 1px; border-right-color: windowtext; border-top: none; border-bottom-width: 2px; border-bottom-color: windowtext;"
                  rowspan="1" colspan="1">
                  <p style= "text-align: center;font-size: 14px"><span style="font-family: 宋体;font-size: 14px">说
                      明</span></p>
                </td>
                <td width="742" valign="center" colspan="7"
                  style=" border-left: none; border-right-width: 2px; border-right-color: windowtext; border-top: none; border-bottom-width: 2px; border-bottom-color: windowtext; word-break: break-all;"
                  rowspan="1">
                  <p style= "text-align: justify;font-size: 14px"><span
                      style="font-family: 宋体;font-size: 14px">①材料和加工费填货物名称和合同编号，运杂费填项目名称、编号和合同号，其它填项目名称、项目编号；</span>
                  </p>
                  <p style= "text-align: justify;font-size: 14px"><span
                      style="font-family: 宋体;font-size: 14px">②</span><span
                      style="font-family: 宋体;font-size: 14px">大写规范：壹、贰、叁、肆、伍、陆、柒、捌、玖、拾、佰、仟、万、零、整。</span>
                  </p>
                  <p style= "text-align: justify;font-size: 14px"><span
                      style="font-family: 宋体;font-size: 14px">③批准适用于审批权限授予者。</span></p>
                  <p style= "text-align: justify;font-size: 14px"><strong><span
                        style="font-family: 宋体;color: rgb(255, 0, 0);font-size: 14px">④差旅交通费不含机票、火车票、公路、水路客票等，上述三项按含税金额列示即可。</span></strong>
                  </p>
                </td>
              </tr>
              
            </tbody>
          </table>
          <p style="text-align: center;font-size: 14px;white-space: normal;text-indent: 415px;margin-top:10px;">
              <span>合计附票 &nbsp;&nbsp;${isProject.tabCount}&nbsp;&nbsp;   张 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   ${isProject.creatYear} 年  &nbsp;&nbsp; ${isProject.creatMonth} 月  &nbsp;&nbsp;${isProject.creatDay} 日 </span>
          </p>
          ${!state?`
            <p  style="text-align: right;">
              <img class="adopt_img" src="./watermark/img/seal.png" alt="">
            </p>`: ``
            }
          
        </div>
        <div style=" -webkit-writing-mode: vertical-rl; writing-mode: vertical-rl; writing-mode: tb-rl; margin:100px 0 0px 15px;">第&nbsp;（ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ）&nbsp;号</div>
        `
      document.getElementById('isProject').innerHTML= isProjectTemp
    }
    
    // 差旅费报销单
    function buildTravel(){
      let travelTemp=''
      
      travel.forEach(travel_data=>{
        travelTemp+=`<div style="height:786px;" class="print_boxH" > 
    <div >
            <p style="text-align:center;font-size: 24px;white-space: normal;margin-bottom: 30px;">
                差旅费报销单
            </p>
            <p style="text-align: center;font-size: 14px;white-space: normal;text-indent: 10px;margin-bottom:5px;display:flex">
                
                    <span  style="margin-right:100px;">
                报销单位 
                ${travel_data.unitName==='凯特智控'?'■':'□'}凯特智控
                ${travel_data.unitName==='中加诚信'?'■':'□'}中加诚信
                ${travel_data.unitName==='凯特高科'?'■':'□'}凯特高科
                ${travel_data.unitName==='凯特伟业'?'■':'□'}凯特伟业 
                ${travel_data.unitName==='其他'?'■':'□'}其他
              </span>
              <span style="margin-right:100px;">报销部门：${travel_data.reimbursementDept}</span>
              <span>${travel_data.creatYear} 年&nbsp;&nbsp;  ${travel_data.creatMonth} 月&nbsp;&nbsp;  ${travel_data.creatDay} 日</span>
              </p>
      <table cellspacing="0" style="width: 760px;">
        <tbody>
          <tr style="height: 36px" class="firstRow">
            <td width="140" valign="center" colspan="5" style=" border-width: 3px 1px 1px 3px;"
              rowspan="1">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">出差人</span></p>
            </td>
            <td width="245" valign="center" colspan="9" style=" border-width: 3px 1px 1px;"
              rowspan="1">${travel_data.name}</td>
            <td width="162" valign="center" colspan="3" style=" border-width: 3px 1px 1px;"
              rowspan="1">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px;text-indent: 40px">
                <span style="font-family: 宋体;font-size: 16px">出差事由</span></p>
            </td>
            <td width="258" valign="center" colspan="4" style=" border-width: 3px 1px 1px;"
              rowspan="1">${travel_data.reason}</td>
            <td width="56" valign="top" rowspan="12" style=" border-width: 3px 3px 3px 1px;"
              colspan="1">
              <p style="margin: 0 8px 0;text-align:center ;font-family: Calibri;font-size: 14px">
                <span
                  style="font-family: 宋体;font-size: 16px;display: block;"><br><br><br><br>附<br><br>件<br><br><br><br><br><br>张</span>
              </p>
            </td>
          </tr>
          <tr style="height: 36px">
            <td width="141" valign="center" colspan="5" style=" border-width: 1px 1px 1px 3px;"
              rowspan="1">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">出发</span></p>
            </td>
            <td width="142" valign="center" colspan="5" style=" border-width: 1px;" rowspan="1">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">到达</span></p>
            </td>
            <td width="51" valign="center" rowspan="2" style=" border-width: 1px;" colspan="2">
              <p style= "font-family: Calibri;font-size: 14px;text-align: center;"><span style="font-family: 宋体;font-size: 16px">交通<br>工具</span>
              </p>
            </td>
            <td width="103" valign="center" colspan="3" style=" border-width: 1px;" rowspan="1">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">交通费</span></p>
            </td>
            <td width="110" valign="center" colspan="2" style=" border-width: 1px;" rowspan="1">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">出差补贴</span></p>
            </td>
            <td width="260" valign="center" colspan="4" style=" border-width: 1px;" rowspan="1">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">其他费用</span></p>
            </td>
          </tr>
          <tr style="height: 56px">
            <td width="31" valign="center" style=" border-width: 1px 1px 1px 3px;" rowspan="1"
              colspan="1">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">月</span></p>
            </td>
            <td width="30" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">日</span></p>
            </td>
            <td width="31" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">时</span></p>
            </td>
            <td width="49" valign="center" style=" border-width: 1px;" rowspan="1" colspan="2">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">地点</span></p>
            </td>
            <td width="30" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">月</span></p>
            </td>
            <td width="31" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">日</span></p>
            </td>
            <td width="31" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">时</span></p>
            </td>
            <td width="50" valign="center" style=" border-width: 1px;" rowspan="1" colspan="2">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">地点</span></p>
            </td>
            <td width="49" valign="center" style=" border-width: 1px;" rowspan="1" colspan="2">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">单据<br>张数</span></p>
            </td>
            <td width="55" valign="center" colspan="1" style=" border-width: 1px;" rowspan="1">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">金额</span></p>
            </td>
            <td width="56" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">天数</span></p>
            </td>
            <td width="54" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">金额</span></p>
            </td>
            <td width="113" valign="center" style=" border-width: 1px;" rowspan="1" colspan="2">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">项目</span></p>
            </td>
            <td width="57" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">单据<br>张数</span></p>
            </td>
            <td width="86" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              <p style= "text-align: center;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">金额</span></p>
            </td>
          </tr>
          <tr style="text-align:center;height: 29px">
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px 1px 1px 3px;" rowspan="1"
              colspan="1">${travel_data.data[0]&&travel_data.data[0].startMonth||''}</td>
            <td width="30" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.data[0]&&travel_data.data[0].startDay||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.data[0]&&travel_data.data[0].startTime||''}
            </td>
            <td width="49" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
                ${travel_data.data[0]&&travel_data.data[0].startPlace||''}
            </td>
            <td width="30" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.data[0]&&travel_data.data[0].endMonth||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.data[0]&&travel_data.data[0].endDay||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.data[0]&&travel_data.data[0].endTime||''}
            </td>
            <td width="50" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
                ${travel_data.data[0]&&travel_data.data[0].endPlace||''}
            </td>
            <td width="100" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
                ${travel_data.data[0]&&travel_data.data[0].traffic||''}
            </td>
            <td width="49" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="2">
                ${travel_data.data[0]&&travel_data.data[0].trafficNum||''}
            </td>
            <td width="55" valign="center" colspan="1" style="padding: 0px 5px; border-width: 1px;" rowspan="1">
                ${travel_data.data[0]&&travel_data.data[0].trafficMoney||''}
            </td>
            <td width="56" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.data[0]&&travel_data.data[0].goOutNmu||''}
            </td>
            <td width="54" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.data[0]&&travel_data.data[0].goOutMoney||''}
            </td>
            <td width="113" valign="center" style=" border-width: 1px;" rowspan="1" colspan="2">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">住宿费</span></p>
            </td>
            <td width="57" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              ${travel_data.stay.num||''}
            </td>
            <td width="86" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.stay.money||''}
            </td>
          </tr>
          <tr style="text-align:center;height: 29px">
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px 1px 1px 3px;" rowspan="1"
              colspan="1">
              ${  travel_data.data[1]&&travel_data.data[1].startMonth||''}
            </td>
            <td width="30" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${  travel_data.data[1]&&travel_data.data[1].startDay||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${  travel_data.data[1]&&travel_data.data[1].startTime||''}
            </td>
            <td width="49" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${  travel_data.data[1]&&travel_data.data[1].startPlace||''}
            </td>
            <td width="30" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${  travel_data.data[1]&&travel_data.data[1].endMonth||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${  travel_data.data[1]&&travel_data.data[1].endDay||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${  travel_data.data[1]&&travel_data.data[1].endTime||''}
            </td>
            <td width="50" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${  travel_data.data[1]&&travel_data.data[1].endPlace||''}
            </td>
            <td width="100" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${  travel_data.data[1]&&travel_data.data[1].traffic||''}
            </td>
            <td width="49" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="2">
              ${  travel_data.data[1]&&travel_data.data[1].trafficNum||''}
            </td>
            <td width="55" valign="center" colspan="1" style="padding: 0px 5px; border-width: 1px;" rowspan="1">
              ${  travel_data.data[1]&&travel_data.data[1].trafficMoney||''}
            </td>
            <td width="56" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${  travel_data.data[1]&&travel_data.data[1].goOutNmu||''}
            </td>
            <td width="54" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${  travel_data.data[1]&&travel_data.data[1].goOutMoney||''}
            </td>
            <td width="113" valign="center" style=" border-width: 1px;" rowspan="1" colspan="2">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">市内车费</span></p>
            </td>
            <td width="57" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              ${travel_data.car.num||''}
            </td>
            <td width="86" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.car.money||''}
            </td>
          </tr>
          <tr style="text-align:center;height: 29px">
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px 1px 1px 3px;" rowspan="1"
              colspan="1">
              ${travel_data.data[2]&&travel_data.data[2].startMonth||''}
              </td>
            <td width="30" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[2]&&travel_data.data[2].startDay||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[2]&&travel_data.data[2].startTime||''}
            </td>
            <td width="49" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[2]&&travel_data.data[2].startPlace||''}
            </td>
            <td width="30" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[2]&&travel_data.data[2].endMonth||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[2]&&travel_data.data[2].endDay||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[2]&&travel_data.data[2].endTime||''}
            </td>
            <td width="50" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[2]&&travel_data.data[2].endPlace||''}
            </td>
            <td width="100" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[2]&&travel_data.data[2].traffic||''}
            </td>
            <td width="49" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan=2">
              ${ travel_data.data[2]&&travel_data.data[2].trafficNum ||''}
            </td>
            <td width="55" valign="center" colspan="1" style="padding: 0px 5px; border-width: 1px;" rowspan="1">
              ${ travel_data.data[2]&&travel_data.data[2].trafficMoney ||''}
            </td>
            <td width="56" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[2]&&travel_data.data[2].goOutNmu ||''}
            </td>
            <td width="54" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[2]&&travel_data.data[2].goOutMoney ||''}
            </td>
            <td width="113" valign="center" style=" border-width: 1px;" rowspan="1" colspan="2">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">邮电费</span></p>
            </td>
            <td width="57" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              ${travel_data.electric.num||''}
            </td>
            <td width="86" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              ${travel_data.electric.money||''}
            </td>
          </tr>
          <tr style="text-align:center;height: 29px">
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px 1px 1px 3px;" rowspan="1"
              colspan="1">
              ${ travel_data.data[3]&&travel_data.data[3].startMonth||''}
            </td>
            <td width="30" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[3]&&travel_data.data[3].startDay||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[3]&&travel_data.data[3].startTime||''}
            </td>
            <td width="49" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[3]&&travel_data.data[3].startPlace||''}
            </td>
            <td width="30" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[3]&&travel_data.data[3].endMonth||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[3]&&travel_data.data[3].endDay||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[3]&&travel_data.data[3].endTime||''}
            </td>
            <td width="50" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[3]&&travel_data.data[3].endPlace||''}
            </td>
            <td width="100" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[3]&&travel_data.data[3].traffic||''}
            </td>
            <td width="49" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[3]&&travel_data.data[3].trafficNum||''}
            </td>
            <td width="55" valign="center" colspan="1" style="padding: 0px 5px; border-width: 1px;" rowspan="1">
              ${ travel_data.data[3]&&travel_data.data[3].trafficMoney||''}
            </td>
            <td width="56" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[3]&&travel_data.data[3].goOutNmu||''}
            </td>
            <td width="54" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[3]&&travel_data.data[3].goOutMoney||''}
            </td>
            <td width="113" valign="center" style=" border-width: 1px;" rowspan="1" colspan="2">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">办公用品费</span></p>
            </td>
            <td width="57" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              ${travel_data.officeExpenses.num||''}
            </td>
            <td width="86" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
              ${travel_data.officeExpenses.money||''}
            </td>
          </tr>
          <tr style="text-align:center;height: 27px">
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px 1px 1px 3px;" rowspan="1"
              colspan="1">
              ${ travel_data.data[4]&&travel_data.data[4].startMonth||''}
            </td>
            <td width="30" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[4]&&travel_data.data[4].startDay||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[4]&&travel_data.data[4].startTime||''}
            </td>
            <td width="49" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[4]&&travel_data.data[4].startPlace||''}
            </td>
            <td width="30" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[4]&&travel_data.data[4].endMonth||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[4]&&travel_data.data[4].endDay||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[4]&&travel_data.data[4].endTime||''}
            </td>
            <td width="50" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[4]&&travel_data.data[4].endPlace||''}
            </td>
            <td width="100" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[4]&&travel_data.data[4].traffic||''}
            </td>
            <td width="49" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[4]&&travel_data.data[4].trafficNum||''}
            </td>
            <td width="55" valign="center" colspan="1" style="padding: 0px 5px; border-width: 1px;" rowspan="1">
              ${ travel_data.data[4]&&travel_data.data[4].trafficMoney||''}
            </td>
            <td width="56" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[4]&&travel_data.data[4].goOutNmu||''}
            </td>
            <td width="54" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[4]&&travel_data.data[4].goOutMoney||''}
            </td>
            <td width="113" valign="center" style=" border-width: 1px;" rowspan="1" colspan="2">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">不买卧铺补贴</span></p>
            </td>
            <td width="57" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.noLie.num||''}
            </td>
            <td width="86" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.noLie.money||''}
            </td>
          </tr>
          <tr style="text-align:center;height: 29px">
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px 1px 1px 3px;" rowspan="1"
              colspan="1">
              ${ travel_data.data[5]&&travel_data.data[5].startMonth||''}
            </td>
            <td width="30" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[5]&&travel_data.data[5].startDay||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[5]&&travel_data.data[5].startTime||''}
            </td>
            <td width="49" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[5]&&travel_data.data[5].startPlace||''}
            </td>
            <td width="30" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[5]&&travel_data.data[5].endMonth||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[5]&&travel_data.data[5].endDay||''}
            </td>
            <td width="31" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[5]&&travel_data.data[5].endTime||''}
            </td>
            <td width="50" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[5]&&travel_data.data[5].endPlace||''}
            </td>
            <td width="100" valign="center" style="padding: 0px 0px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[5]&&travel_data.data[5].traffic||''}
            </td>
            <td width="49" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="2">
              ${ travel_data.data[5]&&travel_data.data[5].trafficNum||''}
            </td>
            <td width="55" valign="center" colspan="1" style="padding: 0px 5px; border-width: 1px;" rowspan="1">
              ${ travel_data.data[5]&&travel_data.data[5].trafficMoney||''}
            </td>
            <td width="56" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[5]&&travel_data.data[5].goOutNmu||''}
            </td>
            <td width="54" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="1">
              ${ travel_data.data[5]&&travel_data.data[5].goOutMoney||''}
            </td>
            <td width="113" valign="center" style="padding: 0px 5px; border-width: 1px;" rowspan="1" colspan="2">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">其他</span></p>
            </td>
            <td width="57" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.other.num||''}
            </td>
            <td width="86" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.other.money||''}
            </td>
          </tr>
          <tr style="text-align:center;height: 28px">
            <td width="334" valign="center" colspan="12" style=" border-width: 1px 1px 1px 3px;"
              rowspan="1">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px;text-indent: 104px">
                <span style="font-family: 宋体;font-size: 16px">合
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;计</span></p>
            </td>
            <td width="49" valign="center" style=" border-width: 1px;" rowspan="1" colspan="2">
                ${travel_data.trafficNumTotal||''}
            </td>
            <td width="55" valign="center" colspan="1" style=" border-width: 1px;" rowspan="1">
                ${travel_data.trafficMoneyTotal||''}
            </td>
            <td width="56" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.goOutNmuTotal||''}
            </td>
            <td width="54" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">
                ${travel_data.goOutMoneyTotal||''}
            </td>
            <td width="113" valign="center" style=" border-width: 1px;" rowspan="1" colspan="2">
              <br></td>
            <td width="57" valign="center"
              style=" border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: none;"
              rowspan="1" colspan="1">${travel_data.otherCount||''}</td>
            <td width="86" valign="center" style=" border-width: 1px;" rowspan="1" colspan="1">${travel_data.otherSum||''}
            </td>
          </tr>
          <tr style="height: 29px">
            <td width="92" valign="center" colspan="3" rowspan="2"
              style=" border-width: 1px 1px 3px 3px;">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">报销总额</span></p>
            </td>
            <td width="291" valign="center" colspan="11" rowspan="2" style=" border-width: 1px;">
                <span style="font-family: 宋体;font-size: 16px">&nbsp;人民币（大写） ${travel_data.total}</span>

            </td>
            <td width="55" valign="center" colspan="1" rowspan="2" style=" border-width: 1px;">
              <p style= "font-family: Calibri;font-size: 14px;text-align: center;"><span style="font-family: 宋体;font-size: 16px">予借旅费</span>
              </p>
            </td>
            <td width="110" valign="center" colspan="2" rowspan="2" style=" border-width: 1px;">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">¥</span> ${travel_data.travel}</p>
            </td>
            <td width="113" valign="center" style=" border-width: 1px;" rowspan="1" colspan="2">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">补领金额</span></p>
            </td>
            <td width="146" valign="center" colspan="2" style=" border-width: 1px;" rowspan="1">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">¥ ${travel_data.repair}</span></p>
            </td>
          </tr>
          <tr style="height: 31px">
            <td width="113" valign="center" style=" border-width: 1px 1px 3px;" rowspan="1"
              colspan="2">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">退还金额</span></p>
            </td>
            <td width="146" valign="center" colspan="2" style=" border-width: 1px 1px 3px;"
              rowspan="1">
              <p style= "text-align: justify;font-family: Calibri;font-size: 14px"><span
                  style="font-family: 宋体;font-size: 16px">¥ ${travel_data.retreat}</span></p>
            </td>
          </tr>
          <tr height="0">
            <td colspan="18" style="border-color:transparent;padding:0px;">
              <div style="width:857px"></div>
            </td>
          </tr>
        </tbody>
      </table>
      <p style= "text-align: center;font-family: Calibri;font-size: 14px;white-space: normal;margin-top: 5px;">
        <span style="font-family:宋体;margin-right:200px;">主管</span>
        <span style="font-family:宋体;margin-right:200px;">审核</span>
        <span style="font-family:宋体;margin-right:200px;">出纳</span>
        <span style="font-family:宋体;margin-right:180px;">领款人</span>
      </p>
      ${!state?`<p  style="text-align: right;">
            <img class="adopt_img" src="./watermark/img/seal.png" alt="">
          </p>`: 
          ` `
        }
      
      </div>
        <div style=" -webkit-writing-mode: vertical-rl; writing-mode: vertical-rl; writing-mode: tb-rl; margin:100px 0 0px 15px;">第&nbsp;（ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ）&nbsp;号</div>
      </div> `
      })
      document.getElementById('travel').innerHTML= travelTemp
    }
    
    // 市内交通费报销单
    function buildTraffic(){
      let trafficTemp=''
      traffic.forEach(traffic_data=>{
        let traffic_itemTemp=``
        if(traffic_data.data.length<10){
          const needLength=10-traffic_data.data.length
          for(var i = 0; i < needLength;i ++){
            traffic_data.data[traffic_data.data.length+i] = {}
          }
        }
          traffic_data.data.forEach(traffic_item=>{
            traffic_itemTemp +=`
            <tr height="20">
                <td class="et4" height="15"   >${traffic_item.month||''}</td>
                <td class="et4" height="15"   >${traffic_item.day||''}</td>
                <td class="et4" height="15"   >${traffic_item.startTime||''}</td>
                <td class="et4" height="15"   >${traffic_item.startPlace||''}</td>
                <td class="et4" height="15"   >${traffic_item.endTime||''}</td>
                <td class="et4" height="15" colspan="2"   >${traffic_item.endPlace||''}</td>
                <td class="et4" height="15"  colspan="2"  >${traffic_item.money||''}</td>
                <td class="et5" height="15"   >${traffic_item.reason||''}</td>
            </tr>
          `
          })
    trafficTemp+=`
    <div style="height:795px;">
      <br> <br> <br> <br> <br> <br> <br>
      <p  style= "text-align: center; font-size: 24px;white-space: normal;margin-bottom: 30px;">
        市内交通费报销单
      </p>
      <table height="236" style="font-size: 14px; font-family: 宋体; vertical-align: middle; text-align: center; ">
        <tbody>
          <tr height="15">
            <td class="et3" colspan="3"  height="11" width="37" rowspan="1">
              ${traffic_data.year}年
            </td>
            <td class="et4" colspan="1"  height="11" width="33" rowspan="1">
              出&nbsp;&nbsp;&nbsp;发
            </td>
            <td class="et4" colspan="3"  height="11" width="37" rowspan="1">
              到&nbsp;&nbsp;&nbsp;达
            </td>
            <td class="et4" rowspan="2"  height="24" width="37" colspan="2">
              金&nbsp;&nbsp;额
            </td>
            <td class="et4" colspan="2" rowspan="2"  height="24" width="225" >
              事&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由
            </td>
          </tr>
          <tr height="17">
            <td class="et4"  height="12" width="30" rowspan="1" colspan="1">月</td>
            <td class="et4"  height="12" width="30" rowspan="1" colspan="1">日</td>
            <td class="et4"  height="12" width="30" rowspan="1" colspan="1">时</td>
            <td class="et4"  height="12" width="160" rowspan="1" colspan="1">地点</td>
            <td class="et4"  height="12" width="30" rowspan="1" colspan="1">时</td>
            <td class="et4"  height="12" width="50" rowspan="1" colspan="2">地点</td>
          </tr>`
          +traffic_itemTemp +
          `
          <tr height="20">
                <td class="et4" height="15" colspan="7"   > </td>
                <td class="et4" height="15"  colspan="2"  > </td>
                <td class="et5" height="15"   > </td>
          </tr>
          <tr height="16">
            <td class="et5" colspan="7"  height="12"  rowspan="1">
              合&nbsp;&nbsp;计&nbsp;&nbsp;金&nbsp;&nbsp;额&nbsp;&nbsp;(小写):
            </td>
            <td class="et4" colspan="4" x:num="163.48" height="12"  rowspan="1">
              ${traffic_data.total}
            </td>
          </tr>
          <tr height="0">
            <td colspan="9" style="border-color:transparent;padding:0px;">
              <div style="width:620px"></div>
            </td>
          </tr>
        </tbody>
      </table>
      ${!state?`
        <p  style="text-align: right;">
          <img class="adopt_img" src="./watermark/img/seal.png" alt="">
        </p>
        `:''}
      
      </div>`
      })
      document.getElementById('traffic').innerHTML= trafficTemp
    }
    
    // 业务招待费明细
    function buildEntertain(){
    let entertainTemp=''
    entertain.forEach(entertain_data=>{
      let entertain_itemTem=''
      if(entertain_data.data.length<6){
        const needLength=6-entertain_data.data.length
        for(var i = 0; i < needLength;i ++){
          entertain_data.data[needLength+i] = {}
        }
      }
      entertain_data.data.forEach((entertain_item,index)=>{
        entertain_itemTem += `
        <tr height="32">
                <td class="et10" height="24" width="35"
                  style="font-size: 10px; font-family: 宋体;  vertical-align: middle; text-align: center; white-space: normal; "
                  rowspan="1" colspan="1">${entertain_item.money?index+1:''}</td>
                <td class="et10" height="24" width="69"
                  style="font-size: 10px; font-family: 宋体;  vertical-align: middle; text-align: center; white-space: normal;  "
                  rowspan="1" colspan="1">${entertain_item.company||''}</td>
                <td class="et11" height="24" width="100"
                  style="font-size: 10px; font-family: 宋体;  vertical-align: middle; text-align: center; white-space: normal; "
                  rowspan="1" colspan="1">${entertain_item.time||''}</td>
                <td class="et10" height="24" width="85"
                  style="font-size: 10px; font-family: 宋体;  vertical-align: middle; text-align: center; white-space: normal;  "
                  rowspan="1" colspan="1">${entertain_item.reason||''}</td>
                <td class="et10" height="24" width="55"
                  style="font-size: 10px; font-family: 宋体;  vertical-align: middle; text-align: center; white-space: normal;  "
                  rowspan="1" colspan="1">${entertain_item.personnel||''}</td>
                <td class="et10" height="24" width="44"
                  style="font-size: 10px; font-family: 宋体;  vertical-align: middle; text-align: center; white-space: normal;  "
                  rowspan="1" colspan="1">${entertain_item.peopleNum||''}</td>
                <td class="et10" height="24" width="85"
                  style="font-size: 10px; font-family: 宋体;  vertical-align: middle; text-align: center; white-space: normal;  "
                  rowspan="1" colspan="1">${entertain_item.content||''}</td>
                <td class="et10" height="24" width="47"
                  style="font-size: 10px; font-family: 宋体;  vertical-align: middle; text-align: center; white-space: normal;  "
                  rowspan="1" colspan="1">${entertain_item.money||''}</td>
              </tr>
              `
      })
      
      entertainTemp+=`     
      <div  style="height:780px;"  >
        <br> <br> <br> <br> <br> <br> <br>
        <p style="text-align: center;font-size: 24px;white-space: normal;margin-bottom:30px;">
          业务招待费明细
        </p>

        <p style="text-align: center;font-size: 14px;white-space: normal;text-indent: 10px;margin-bottom:5px;display:flex;">
              <span  style="margin-right:150px;">北京凯特伟业科技有限公司 </span>
              <span style="margin-right:180px;">档案号：</span>
        </p>

        <table height="369" >
          <tbody>

            <tr height="32">
              <td class="et6"  height="24" width="55"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1">申请部门</td>
              <td class="et7" colspan="3"  height="24" width="188"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1">${entertain_data.department||''}</td>
              <td class="et6"  height="24" width="55"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1">申请人</td>
              <td class="et7" colspan="3"  height="24" width="174"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1">${entertain_data.name||''}</td>
            </tr>
            <tr height="32">
              <td class="et6"  height="24" width="35"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1">序号</td>
              <td class="et6"  height="24" width="100"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1">招待单位</td>
              <td class="et6"  height="24" width="50"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1">时间</td>
              <td class="et6"  height="24" width="100"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1">事由</td>
              <td class="et6"  height="24" width="55"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1">招待人员</td>
              <td class="et6"  height="35" width="70"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1">招待人数</td>
              <td class="et6"  height="24" width="120"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1">招待费内容</td>
              <td class="et6"  height="24" width="80"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1">招待费金额</td>
            </tr>`
          +entertain_itemTem+
          ` 
            <tr height="32">
              <td class="et6"  height="24" width="35"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="24" width="100"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="24" width="50"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="24" width="100"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="24" width="55"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="35" width="70"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et10" height="24" width="120"
                style="font-size: 10px; font-family: 宋体;  vertical-align: middle; text-align: center; white-space: normal; "
                rowspan="1" colspan="1">合计</td>
              <td class="et10" height="24" width="69"
                style="font-size: 10px; font-family: 宋体;  vertical-align: middle; text-align: center; white-space: normal;  "
                rowspan="1" colspan="1">${entertain_data.total||''}</td>
            </tr>
            <tr height="32">
              <td class="et6"  height="24" width="35"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="24" width="100"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="24" width="50"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="24" width="100"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="24" width="55"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="24" width="150"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="3">分管领导（审批）</td>
            </tr>
            <tr height="32">
              <td class="et6"  height="24" width="35"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="24" width="100"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="24" width="50"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="24" width="100"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="24" width="55"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="1"></td>
              <td class="et6"  height="24" width="150"
                style="font-size: 10px; font-family: 宋体; font-weight: 700; vertical-align: middle; text-align: center; "
                rowspan="1" colspan="3">行政总监（备案）</td>
            </tr>
          </tbody>
        </table> 
        ${!state?`
          <p  style="text-align: right;">
            <img class="adopt_img" src="./watermark/img/seal.png" alt="">
          </p>`:''
              }
        </div>`

    })
    document.getElementById('entertain').innerHTML= entertainTemp
  }
    
    // 无法取得发票的费用支出情况说明
    function buildReplace(){
    let replaceTemp =''
    replace.forEach(replace_data=>{
      let replace_itemTemp=''
      if(replace_data.data.length<4){
        const needLength=5-replace_data.data.length
        for(var i = 0; i < needLength;i ++){
          replace_data.data.push({})
        }
      }
      replace_data.data.forEach((replace_item,index)=>{
        replace_itemTemp+=`
        <tr>
            <td width="33" valign="center"
              style=" border-width: 1px; border-left-color: windowtext; border-right-color: windowtext; border-style: solid; border-top-color: initial; border-bottom-color: windowtext;"
              rowspan="1" colspan="1">
              <p style="text-align: center;font-size: 14px;line-height: 21px"><span
                  style="font-family: 宋体;line-height: 21px;font-size: 14px">${index+1||''}</span></p>
            </td>
            <td width="125" valign="center"
              style="text-align: center; border-left-color: initial; border-right-color: windowtext; border-top-color: initial; border-bottom-color: windowtext;"
              rowspan="1" colspan="1">${replace_item.time||''}</td>
            <td width="182" valign="center"
              style="text-align: center;  border-left-color: initial; border-right-color: windowtext; border-top-color: initial; border-bottom-color: windowtext;"
              rowspan="1" colspan="1">${replace_item.object||''}</td>
            <td width="63" valign="center"
              style="text-align: center;  border-left-color: initial; border-right-color: windowtext; border-top-color: initial; border-bottom-color: windowtext;"
              rowspan="1" colspan="1">${replace_item.money||''}</td>
            <td width="64" valign="center"
              style="text-align: center;  border-left-color: initial; border-right-color: windowtext; border-top-color: initial; border-bottom-color: windowtext;"
              rowspan="1" colspan="1"></td>
            <td width="57" valign="center"
              style="text-align: center;  border-left-color: initial; border-right-color: windowtext; border-top-color: initial; border-bottom-color: windowtext;"
              rowspan="1" colspan="1"></td>
            <td width="58" valign="center"
              style="text-align: center;  border-left-color: initial; border-right-color: windowtext; border-top-color: initial; border-bottom-color: windowtext;"
              rowspan="1" colspan="1"></td>
          </tr>`
      })
      replaceTemp += `
      <div style="height:750px;">
        <br> <br> <br> <br> <br> <br> <br> <br> <br> 
          <p style= "text-align: center; font-size: 24px;white-space: normal;margin-bottom: 30px;">
        附表：无法取得发票的费用支出情况说明
      </p>
      <table cellspacing="0">
        <tbody>
          <tr class="firstRow">
            <td width="33" valign="center"
              style=" border-color: windowtext; word-break: break-all; border-style: solid;"
              rowspan="1" colspan="1">
              <p style="text-align: center;font-size: 14px;line-height: 21px"><span
                  style="font-family: 宋体;line-height: 21px;font-size: 14px">序号</span></p>
            </td>
            <td width="125" valign="center"
              style=" border-style: solid; border-left-color: initial; border-right-color: windowtext; border-top-color: windowtext; border-bottom-color: windowtext;"
              rowspan="1" colspan="1">
              <p style="text-align: center;font-size: 14px;line-height: 21px"><span
                  style="font-family: 宋体;line-height: 21px;font-size: 14px">时间</span></p>
            </td>
            <td width="182" valign="center"
              style="  border-style: solid; border-left-color: initial; border-right-color: windowtext; border-top-color: windowtext; border-bottom-color: windowtext;"
              rowspan="1" colspan="1">
              <p style="text-align: center;font-size: 14px;line-height: 21px"><span
                  style="font-family: 宋体;line-height: 21px;font-size: 14px">费用支出项目</span></p>
            </td>
            <td width="63" valign="center"
              style="  border-style: solid; border-left-color: initial; border-right-color: windowtext; border-top-color: windowtext; border-bottom-color: windowtext;"
              rowspan="1" colspan="1">
              <p style="text-align: center;font-size: 14px;line-height: 21px"><span
                  style="font-family: 宋体;line-height: 21px;font-size: 14px">金额</span><span
                  style="font-family: 宋体;line-height: 21px;font-size: 14px">/</span><span
                  style="font-family: 宋体;line-height: 21px;font-size: 14px">元</span></p>
            </td>
            <td width="64" valign="center"
              style="  border-style: solid; border-left-color: initial; border-right-color: windowtext; border-top-color: windowtext; border-bottom-color: windowtext;"
              rowspan="1" colspan="1">
              <p style="text-align: center;font-size: 14px;line-height: 21px"><span
                  style="font-family: 宋体;line-height: 21px;font-size: 14px">经办人</span></p>
            </td>
            <td width="57" valign="center"
              style="  border-style: solid; border-left-color: initial; border-right-color: windowtext; border-top-color: windowtext; border-bottom-color: windowtext;"
              rowspan="1" colspan="1">
              <p style="text-align: center;font-size: 14px;line-height: 21px"><span
                  style="font-family: 宋体;line-height: 21px;font-size: 14px">证明人</span></p>
            </td>
            <td width="58" valign="center"
              style="  border-style: solid; border-left-color: initial; border-right-color: windowtext; border-top-color: windowtext; border-bottom-color: windowtext;"
              rowspan="1" colspan="1">
              <p style="text-align: center;font-size: 14px;line-height: 21px"><span
                  style="font-family: 宋体;line-height: 21px;font-size: 14px">审核人</span></p>
            </td>
          </tr>`
          +replace_itemTemp+
          `<tr>
            <td width="340" valign="center" colspan="3"
              style=" border-width: 1px; border-left-color: windowtext; border-right-color: windowtext; border-style: solid; border-top-color: initial; border-bottom-color: windowtext;"
              rowspan="1">
              <p style="text-align: center;font-size: 14px;line-height: 21px"><span
                  style="font-family: 宋体;line-height: 21px;font-size: 14px">合计</span></p>
            </td>
            <td width="63" valign="center"
              style="  border-left-color: initial; border-right-color: windowtext; border-top-color: initial; border-bottom-color: windowtext;"
              rowspan="1" colspan="1">${replace_data.total||''}</td>
            <td width="64" valign="center"
              style="  border-left-color: initial; border-right-color: windowtext; border-top-color: initial; border-bottom-color: windowtext;"
              rowspan="1" colspan="1"><br></td>
            <td width="57" valign="center"
              style="  border-left-color: initial; border-right-color: windowtext; border-top-color: initial; border-bottom-color: windowtext;"
              rowspan="1" colspan="1"><br></td>
            <td width="58" valign="center"
              style="  border-left-color: initial; border-right-color: windowtext; border-top-color: initial; border-bottom-color: windowtext;"
              rowspan="1" colspan="1"><br></td>
          </tr>
          <tr height="0">
            <td colspan="7" style="border-color:transparent;padding:0px;">
              <div style="width:578px"></div>
            </td>
          </tr>
        </tbody>
      </table>
      ${!state?`
        <p  style="text-align: right;margin-right:80px;">
          <img class="adopt_img" src="./watermark/img/seal.png" alt="">
        </p>
        `:''}
      
      <div style="text-align: center; font-size: 18px;white-space: normal;text-indent: 236px;line-height: 38px; width: 850px; margin: 10px auto;">
            <p style="text-align: justify; ">
              附
              <span style="text-decoration:underline;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
              发票
              <span style="text-decoration:underline;">&nbsp;&nbsp;&nbsp;</span>
              张，共计
              <span style="text-decoration:underline;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
              元。
            </p>
            <p style="text-align: justify; ">
              附
              <span style="text-decoration:underline;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
              发票
              <span style="text-decoration:underline;">&nbsp;&nbsp;&nbsp;</span>
              张，共计
              <span style="text-decoration:underline;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
              元。
            </p>
            <p style="text-align: justify; ">
              附
              <span style="text-decoration:underline;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
              发票
              <span style="text-decoration:underline;">&nbsp;&nbsp;&nbsp;</span>
              张，共计
              <span style="text-decoration:underline;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
              元。
            </p>
            <p style="text-align: justify; ">
                报销人：
                <span style="text-decoration:underline;">&nbsp;&nbsp;&nbsp;${replace_data.name||''}&nbsp;&nbsp;</span>
                （签字/时间）
            </p>
            <p style="text-align: justify; ">
                总经理或主管副总批准：
                <span style="text-decoration:underline;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                （签字/时间）
            </p>
      </div>
      </div>`
    })
    document.getElementById('replace').innerHTML = replaceTemp
  }
  state&& !plus &&watermark(document.getElementById('printCon'))
}
  startDom();
</script>
<script type="text/javascript">
  // APP页面传递过来plus参数 去获取plus中的存储信息
  function setPlus(plus){
    startDom(plus);
  }
</script>
</html>
